package com.corona.game.action;

import com.corona.game.Action;
import com.corona.Game;
import com.corona.game.util.GameProfiler;

/* loaded from: pokewilds.jar:com/pkmngen/game/action/DrawAction.class */
public abstract class DrawAction extends Action {
    private final GameProfiler profiler;

    protected abstract void draw(Game game);

    public DrawAction(GameProfiler profiler) {
        super(new Object[0]);
        this.profiler = profiler;
    }

    @Override // com.corona.game.Action
    public final void step(Game game) {
        this.profiler.reset();
        draw(game);
        this.profiler.logGl(this);
    }
}
